﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NodeBasedSkillEditor.ViewModel
{
    public class TypeGroupInfo
    {
        public int Id;
        public HashSet<Type> AllowedTypes = new();
        public HashSet<VM_Port> PortMembers = new();

        public Type GetCurrentPortDataType()
        {
            if (PortMembers.Count > 0)
            {
                var portVM = PortMembers.First();
                return portVM.BindPortData.GetDataType();
            }
            else return null;
        }
    }
}
